package tech.aistar.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import tech.aistar.entity.Completion;
import tech.aistar.entity.Manchoice;
import tech.aistar.entity.Programming;
import tech.aistar.entity.Sinchoice;

import java.util.Date;
import java.util.List;

public class Parper {
    private Long testId;//考试号
    private Long parperId;
    private List<Sinchoice> sinchoiceList;
    private List<Manchoice> manchoiceList;
    private List<Completion> completionList;
    private List<Programming> programmingList;

    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
    private Date testEnd;//考试结束时间

    public Parper() {
    }


    public Parper(Long parperId, List<Sinchoice> sinchoiceList, List<Manchoice> manchoiceList, List<Completion> completionList, List<Programming> programmingList) {
        this.parperId = parperId;
        this.sinchoiceList = sinchoiceList;
        this.manchoiceList = manchoiceList;
        this.completionList = completionList;
        this.programmingList = programmingList;
    }

    public Long getTestId() {
        return testId;
    }

    public void setTestId(Long testId) {
        this.testId = testId;
    }


    public Date getTestEnd() {
        return testEnd;
    }


    public void setTestEnd(Date testEnd) {
        this.testEnd = testEnd;
    }

    public Long getParperId() {
        return parperId;
    }

    public void setParperId(Long parperId) {
        this.parperId = parperId;
    }

    public List<Sinchoice> getSinchoiceList() {
        return sinchoiceList;
    }

    public void setSinchoiceList(List<Sinchoice> sinchoiceList) {
        this.sinchoiceList = sinchoiceList;
    }

    public List<Manchoice> getManchoiceList() {
        return manchoiceList;
    }

    public void setManchoiceList(List<Manchoice> manchoiceList) {
        this.manchoiceList = manchoiceList;
    }

    public List<Completion> getCompletionList() {
        return completionList;
    }

    public void setCompletionList(List<Completion> completionList) {
        this.completionList = completionList;
    }

    public List<Programming> getProgrammingList() {
        return programmingList;
    }

    public void setProgrammingList(List<Programming> programmingList) {
        this.programmingList = programmingList;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Parper{");
        sb.append("testId=").append(testId);
        sb.append(", parperId=").append(parperId);
        sb.append(", sinchoiceList=").append(sinchoiceList);
        sb.append(", manchoiceList=").append(manchoiceList);
        sb.append(", completionList=").append(completionList);
        sb.append(", programmingList=").append(programmingList);
        sb.append(", testEnd=").append(testEnd);
        sb.append('}');
        return sb.toString();
    }
}
